Ext.namespace("SMeeting.Feed");
SMeeting.Feed.win = function() {
	this.tabPanel = new Ext.TabPanel({
		region:'center'
	});
	
	Task.Detail.panel.instance = new SMeeting.panel();
	this.tabPanel.add(Task.Detail.panel.instance);
	this.tabPanel.activate(Task.Detail.panel.instance);
	if(!Task.Feed.list.instance)
		Task.Feed.list.instance = new Task.Feed.list();
	this.tabPanel.add(Task.Feed.list.instance);
	
	this.taskDownLoadPanel = new Task.DownLoad.panel();
	this.tabPanel.add(this.taskDownLoadPanel);
	
	SMeeting.Feed.win.superclass.constructor.call(this,{
		title: '任务反馈信息',
        width: 550,
        height:420,
        resizable: true,
        autoScroll: true,
        layout:'border',
        frame:true,
        closeAction: 'hide',
        items: [this.tabPanel],
        buttons: [new Ext.Button({text:'关闭',scope:this,handler:function(){this.hide()}})],
        buttonAlign:'center'
	});
};
Ext.extend(SMeeting.Feed.win,Ext.Window,{
	initDetail:function(data){

		this.taskDownLoadPanel.initFeedBack(data.TASK_ID);
		this.taskDownLoadPanel.queryUpfile(data.TASK_ID);
		this.tabPanel.activate(Task.Detail.panel.instance);
	}
});



